<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		 <script type="text/javascript">
		 	   let str="haoren";
			   console.log(str.repeat(3));
			   console.log(str.repeat(2.9));
			   console.log(str.repeat(0));
			  
			   let user={
				   id:1001,
				   username:'haoren',
				   age: 22
			   }
			   
			   let trs=`
			      <tr>
				    <td>${user.id}</td>
					<td>${user.username}</td>
					<td>${user.age}</td>
				  </tr>
			   `;
			  console.log(trs.trim());
		 </script>
	</body>
</html>
